/*
 * @Descripttion: 
 * @version: 
 * @Author: wishchan
 * @Date: 2021-12-09 14:11:04
 * @LastEditors: wishchan
 * @LastEditTime: 2021-12-09 15:31:42
 */
import '../../../../resource/component/css/component_v2_pc.css'
import '../common/common.scss';

import Vue from 'vue';

import Loading from 'packages/BaseLoading'

import { Popover, Tooltip } from 'element-ui';
import BaseTable from 'packages/BaseTable';
import StatsPopverIcon from '../common/StatsPopoverIcon.vue';

import PerformanceView from './PerformanceView.vue'

import Platform from '@src/util/platform.ts';
import filters from '@src/filter/filter';

import * as mtracker from '@src/util/Mtrackers';
import DatePicker from '../common/DataTime.vue'

mtracker.initializeTalkingData();

for(let name in filters) Vue.filter(name, filters[name]);

Vue.component(Popover.name, Popover);
Vue.component(DatePicker.name, DatePicker)
Vue.component(Tooltip.name, Tooltip);
Vue.component(StatsPopverIcon.name, StatsPopverIcon)
Vue.component(BaseTable.name, BaseTable);

Vue.prototype.$platform = Platform;
Vue.prototype.$loading = Loading;
Vue.prototype.$tdOnEvent = mtracker.onEvent;

let app = {
  render: h => h(PerformanceView)
}

export default app;     